//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "editor\fn_completed.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_param","_objective_name"];

if (!isServer) exitWith {};

_param = _this;
if (IS_ARRAY(_this)) then {
	if (count _this > 0) then {
		_param = _this select 0;
	};
};
if (IS_SCALAR(_param)) then {
	_objective_name = format [TMF_EDITOR_OBJECTIVE,_param];
	[TMF_SERVER_INSTANCE_ID,_objective_name,true] call FFUNC(setMissionJIPVar);
	[QGVAR(all_var), [TMF_SERVER_INSTANCE_ID,_objective_name,true],THIS_FILE_] call NFUNC(callEvent);
};

TRACE("End");
TMFPROFILERSTOP;